package com.wu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wu.pojo.Classify;
import com.wu.pojo.view.ClassifyView;

import java.util.List;

/**
 * @author: 吴磊
 * @program: blog
 * @create: 2021-04-19 20:42
 */
public interface ArticleClassifyService extends IService<Classify> {
    /**
     * 获取类别及其文章数
     *
     * @param classifyName
     * @param userId
     * @return
     */
    List<ClassifyView> getClassifyWithArticleNumber(String classifyName, String userId);

    /**
     * 根据文章ID获取对应的类别
     *
     * @param articleId
     * @return
     */
    Classify getClassifyByArticle(String articleId);


}
